package client;

import java.awt.*;
import java.awt.event.*;

/**
 * 
 * @author Jesse Gorter
 *
 */
public class MyList extends List implements ItemListener
{	
	public MyApplet applet;
	
	public MyList(MyApplet ap)
	{
		super();
		applet = ap;
		this.addItemListener(this);
	}
	
	public int nspaces()
	{
		return 25;
	}
	
	public Dimension getPreferredSize()
	{
		return new Dimension(300,400);
	}
	
	public void update()
	{
		
	}
	public void removeNotify()
	{
		
	}

	public void itemStateChanged(ItemEvent e) 
	{
		applet.changeSelectedCijfer(this);
		
	}
}
